package exercise;

/**
 * @author Yancy
 * @program springioctest
 * @create 2020-11-20
 */
public class Person implements IPerson {

  String food;

  @Override
  public void eat() {
    System.out.println("正在吃" + food);
  }

  @Override
  public void setFood(String food) {
    this.food = food;
    System.out.println("食物为：" + food);
  }
}
